<?php
namespace Communal\Controller;
use Common\Controller\CommonController;

/**
 * 广告模块
 */
class AdvController extends CommonController {
	
	protected function _initialize(){
		parent::_initialize();
		
	}
	
	
	/**
	 * 广告
	 */
	public function advAction(){
		$this->_adv();
	}
	
	private function _adv(){
		//TODO query db
		$returnData = array();
		$returnData[0]['url'] = "http://h.qiyunxin.com/shopb2c";
		$returnData[0]['img'] = "http://h.qiyunxin.com/adv/1.jpeg";
		
		$returnData[1]['url'] = "http://h.qiyunxin.com/shopb2c";
		$returnData[1]['img'] = "http://h.qiyunxin.com/adv/2.jpeg";
		
		$returnData[2]['url'] = "http://h.qiyunxin.com/shopb2c";
		$returnData[2]['img'] = "http://h.qiyunxin.com/adv/3.jpeg";
			
		$this->data = $returnData;
		$this->outPut();
	}
}
